package com.kl.modular.system.dao.mapper;

import com.kl.common.pager.PageParameter;
import com.kl.modular.system.dao.model.SystemAdminRole;
import com.kl.modular.system.dao.bo.SystemAdminRoleBo;
import org.apache.ibatis.annotations.Param;

import java.util.List;



/**
 * 用户角色mapper接口
 * @author XRP_ZJB
 * @date 2016-08-11 21:17
 * @(C) XIGNSOFT Copyright 
 */
public interface SystemAdminRoleMapper {

	List<SystemAdminRole> getListByBoPage(@Param("bo") SystemAdminRoleBo systemAdminRoleBo, @Param("page") PageParameter page);
	
	// 删除
    int deleteByPrimaryKey(@Param(value = "codes") String[] codes);
    	
    // 插入
    int insert(SystemAdminRole systemAdminRole);
    
    // 查询
    SystemAdminRole selectByPrimaryKey(String code);
    
    // 更新
    int updateByPrimaryKey(SystemAdminRole systemAdminRole);
    
    // 逻辑删除用户角色关系
    int updateDeleteByAdminCode(@Param("adminCode") String adminCode);
}